package org.example.task.service;

import jakarta.validation.Valid;
import jakarta.validation.constraints.NotNull;
import org.example.task.model.dto.PageDTO;
import org.example.task.model.po.RolePermission;
import com.baomidou.mybatisplus.extension.service.IService;
import org.example.task.model.query.RolePermissionPageQuery;
import org.example.task.model.vo.rolepermission.RolePermissionVO;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author author
 * @since 2025-06-30
 */
public interface IRolePermissionService extends IService<RolePermission> {

    PageDTO<RolePermissionVO> getRolePermissionList(@Valid RolePermissionPageQuery rolePermissionPageQuery);

    boolean removeRolePermissionById(@NotNull Long roleId, @NotNull Long permissionId);
}
